/**
 * Created by hms on 2020-08-22.
 */
import { ROAST_CONFIG } from '../config.js';

export default{
    getNoticeList:function(data){
        return axios.get(ROAST_CONFIG.API_URL+'/noticelist',{ params : data});
    },
    editNotice:function(data){
        return axios.post(ROAST_CONFIG.API_URL+'/editnotice',qs.stringify(data),{
            headers: {'Content-Type': 'application/x-www-form-urlencoded'}
        });
    },
    getNoticeInfo:function(data){
        return axios.get(ROAST_CONFIG.API_URL+'/noticeinfo',{
            params:data
        });
    },
    delNotice:function(data){
        return axios.get(ROAST_CONFIG.API_URL+'/delnotice',{
            params:data
        });
    },
    getAllNoticeType:function(data){
        return axios.get(ROAST_CONFIG.API_URL+'/allnoticetype',{ params:data })
    }
}
